<template>
  <el-table-column v-if="showId" label="图标ID" align="center" prop="iconId"></el-table-column>
  <el-table-column label="图标" align="center" prop="iconId">
    <template #default="scope">
      <el-image
          style="width: 26px; height: 26px"
          :src="baseUrl+scope.row.iconUrl"
          fit="fill"
      />
    </template>
  </el-table-column>
</template>
<script setup name="IconColumn">
const baseUrl = ref(import.meta.env.VITE_APP_BASE_API);
//props
const props = defineProps({
  showId: {
    type: Boolean,
    default: () => true,
  },
});
</script>
<style scoped lang="scss">
	.IconColumn {
	}
</style>
